/* 登录页面动画效果 */

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* 3D卡片悬浮效果 */
.card-3d {
  transition: all 0.3s ease;
}

.card-3d:hover {
  transform: rotateY(-20deg) rotateX(15deg) translateY(-10px) !important;
}

/* 输入框聚焦效果 */
.ant-input:focus,
.ant-input-password:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
}

/* 按钮悬浮效果 */
.login-button {
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
}

.login-button:hover::before {
  left: 100%;
}

/* 确保全屏显示 */
.login-container {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* 左侧区域样式 */
.login-left {
  flex: 1 !important;
  min-width: 0 !important;
}

/* 右侧区域样式 */
.login-right {
  flex-shrink: 0 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column !important;
    padding: 20px !important;
    justify-content: center !important;
  }

  .login-left {
    display: none !important;
  }

  .login-right {
    width: 100% !important;
    max-width: 400px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .login-right {
    padding: 0 16px !important;
  }

  .glass-card {
    margin: 0 !important;
    border-radius: 16px !important;
  }
}

/* 加载动画 */
.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

  0%,
  20% {
    color: rgba(0, 0, 0, 0);
    text-shadow:
      .25em 0 0 rgba(0, 0, 0, 0),
      .5em 0 0 rgba(0, 0, 0, 0);
  }

  40% {
    color: white;
    text-shadow:
      .25em 0 0 rgba(0, 0, 0, 0),
      .5em 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 rgba(0, 0, 0, 0);
  }

  80%,
  100% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 white;
  }
}

/* 验证码刷新动画 */
.captcha-refresh {
  transition: transform 0.3s ease;
}

.captcha-refresh:hover {
  transform: rotate(180deg);
}

/* 表单项动画 */
.ant-form-item {
  animation: fadeInUp 0.6s ease forwards;
}

.ant-form-item:nth-child(1) {
  animation-delay: 0.1s;
}

.ant-form-item:nth-child(2) {
  animation-delay: 0.2s;
}

.ant-form-item:nth-child(3) {
  animation-delay: 0.3s;
}

.ant-form-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* 背景粒子效果 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: particleFloat 6s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* 玻璃态效果增强 */
.glass-card {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 图标脉冲效果 */
.icon-pulse {
  animation: pulse 2s infinite;
}